package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.VirtualDb;
import com.srit.migration.business.dao.VirtualDbDao;
import com.srit.migration.business.service.VirtualDbService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class VirtualDbServiceImpl implements VirtualDbService {
	@Autowired(required = true)
	private VirtualDbDao virtualDbDao;

	@Override
	public void save(VirtualDb virtualDb) {
		virtualDbDao.save(virtualDb);
	}

	@Override
	public void update(VirtualDb virtualDb) {
		virtualDbDao.update(virtualDb);
	}

	@Override
	public VirtualDb getById(VirtualDb virtualDb) {
		return (VirtualDb) virtualDbDao.getById(virtualDb);
	}

	@Override
	public void delete(VirtualDb virtualDb) {
		virtualDbDao.delete( virtualDb);
	}

	@Override
	public void page(Page page) {
		virtualDbDao.page( page);
	}
	
	@Override
	public void batchSave(List<VirtualDb> virtualDbList) {
		virtualDbDao.batchSave(virtualDbList);

	}

	@Override
	public List list(Page page) {
		return virtualDbDao.list( page);
	}

}
